export function hmToTime(hm: string): number {
	const [h, m] = hm.split(':')
	return new Date(1970, 0, 1, Number(h), Number(m), 0, 0).getTime()
}

export function timeToHm(time: number): string {
	const date = new Date(time)
	return `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`
}
